home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-12 / (Vol E-12) May 21 2012.iso / Animations / dj / dj.swf / scripts / __Packages / mx / controls / streamingmedia / MuteButton.as < prev    next >
Text File  |  2012-05-21  |  699b  |  22 lines

  1. class mx.controls.streamingmedia.MuteButton extends MovieClip
  2. {
  3.    function MuteButton()
  4.    {
  5.       super();
  6.       this.init();
  7.    }
  8.    function init()
  9.    {
  10.       this.attachMovie("SimpleButton","muteSimpleButton",1,{falseUpSkin:"Mute-False-Up",falseOverSkin:"Mute-False-Over",falseDownSkin:"Mute-False-Down",falseDisabledSkin:"Mute-False-Disabled"});
  11.       this.muteSimpleButton.addEventListener("click",this);
  12.       this.muteSimpleButton.enabled = this._parent._parent.enabled;
  13.       this.tabEnabled = false;
  14.       this.tabChildren = true;
  15.    }
  16.    function click(ev)
  17.    {
  18.       this._parent._parent.broadcastEvent("volume",0);
  19.       this._parent.getHandle().setMute();
  20.    }
  21. }
  22.